package com.fit.lov.homework;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.apache.tapestry5.OptionGroupModel;
import org.apache.tapestry5.OptionModel;
import org.apache.tapestry5.util.AbstractSelectModel;

import com.fit.entities.course.Course;
import com.fit.entities.homework.Homework;

public class HomeworkSelectModel  extends AbstractSelectModel {
	private Collection<Homework> homework; 

	public HomeworkSelectModel(Collection<Homework> homework) {
		this.homework = homework;
	}

	public List<OptionGroupModel> getOptionGroups() {
		return null;
	}

	public List<OptionModel> getOptions() {
		List<OptionModel> list = new ArrayList<OptionModel>();
		for (Homework t : homework) {
			list.add(new HomeworkOptionModel(t));
		}
		return list;
	}
}
